//
//  UIs_ABEdgesLabel_DemoVC.swift
//  APSwift
//
//  Created by AbnerPei on 2021/12/30.
//

import UIKit

class UIs_ABEdgesLabel_DemoVC: UIViewController {

    var tagLabel: APEdgesLabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        let margin: CGFloat = 50
        
        tagLabel = APEdgesLabel()
        view.addSubview(tagLabel)
        tagLabel.backgroundColor = .yellow
        tagLabel.textAlignment = .center
        tagLabel.text = "左右间距各\(margin)"
        tagLabel.edgeInsets = UIEdgeInsets(top: 0, left: margin, bottom: 0, right: margin)
        tagLabel.snp.makeConstraints { make in
            make.left.top.equalTo(100)
        }
    }

}
